module.exports = {
	attributes: {
		id: {
			type: 'string',
			primaryKey: true //主键约束
		},
		username: {
			type: 'string',
			unique: true, //唯一性约束
			required: true //not null
		},
		usergroup: {
			type: 'string',
			defaultsTo:'3',//0:开发组,1:管理组,2:销售组,3:客户组,NULL:不在任何组内的为已禁用用户
            model: 'UserGroup' //外键
		},
		nickname: {
			type: 'string'
		},
		password: {
			type: 'string',
			required: true
		}
	}
};